package com.tian.zmp.service;

/**
 * Author zhump
 * Description
 * Date 2018/1/28 9:17
 * Version 1.0.1
 */
public interface RedisService {

    /**通过key获取**/
    String get(String key);

    /**通过key，value赋值*/
    String set(String key, String value);

    /**hash形式存储*/
    String hget(String hkey, String key);

    long hset(String hkey, String key, String value);

    long incr(String key);

    long expire(String key, int second);

    long ttl(String key);

    long del(String key);

    long hdel(String hkey, String key);
}
